package com.forenow.demo.demo20;

public class Mydata {
    private int year;
    private int month;
    private int day;

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public int getMonth() {
        return month;
    }

    public void setMonth(int month) {
        this.month = month;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    public Mydata(int year, int month, int day) {
        this.year = year;
        this.month = month;
        this.day = day;
    }

    public String toDateString() {
        String year1 = String.valueOf(this.year+".");
        String month1 = String.valueOf(this.month+".");
        String day1 = String.valueOf(this.day+".");
        String mydate = year1.concat(month1);
        return mydate.concat(day1);
    }

}
